import request from "../utils/request";
import { MenuForm,menuDelete } from "@/interface/menu"
// 菜单创建
export function menuCreate(data:MenuForm):any  {
  return request({
    type:'post',
    url:"/menu/create",
    data,
  })
}
// 菜单编辑
export function menuEdit(data:MenuForm):any  {
  return request({
    type:'post',
    url:"/menu/edit",
    data,
  })
}
// 菜单删除
export function menuDelete(data:menuDelete):any  {
  
  return request({
    type:'post',
    url:"/menu/delete",
    data,
  })
}